package com.message.dao;

import com.message.pojo.AddressCity;
import com.message.pojo.AddressTown;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressTownMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AddressTown record);

    int insertSelective(AddressTown record);

    AddressTown selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AddressTown record);

    int updateByPrimaryKey(AddressTown record);
    //根据市code值查询县
    List<AddressTown> selectByCode(@Param("code") String code);
}